/*
 * Copyright 2011 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ficv.tucanalmovil;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name="empresa")
public class Empresa 
{
	
	@Element
	private String id;
	
	@Element
	private String version;
	
	@Element
	private String code;
	
	@Element
	private String name;
	
	@Element
	private String abbreviation;

	@Element
	private String web;
	
	@Element
	private String email;
	
	@Element
	private String phone;
	
	@Element
	private String location;
	
	@Element
	private String imgUrl;

	@Element
	private String description;
	
	public List<String> getAvisos() {
		return avisos;
	}


	public void setAvisos(List<String> avisos) {
		this.avisos = avisos;
	}

	private List<String> avisos = new ArrayList<String>(); 
	
	public Empresa() { }


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getAbbreviation() {
		return abbreviation;
	}


	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}

	

	public String getVersion() {
		return version;
	}


	public void setVersion(String version) {
		this.version = version;
	}


	public String getWeb() {
		return web;
	}


	public void setWeb(String web) {
		this.web = web;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getLocation() {
		return location;
	}


	public void setLocation(String location) {
		this.location = location;
	}


	public String getImgUrl() {
		return imgUrl;
	}


	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String desc) {
		this.description = desc;
	}


	public Empresa(String name, String abbreviation, String web, String email,
			String phone, String location, String imgUrl, String desc) {
		super();
		this.name = name;
		this.abbreviation = abbreviation;
		this.web = web;
		this.email = email;
		this.phone = phone;
		this.location = location;
		this.imgUrl = imgUrl;
		this.description = desc;
	}
	
	
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	
	
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String toString() {
//		try {
//		   return BeanUtils.describe(this).toString();
//		  } catch (Exception e) {
//		   
//		  }
		  return super.toString();
		}
	
	
}
